<div id="rola"></div>
<div class="alert alert-error" style="display: none;">
    <ul>
    </ul>
</div>
<div id="edicao">   
    <?php
    $start = true;
    $startImg = true;
    ?>
    <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>" method="post">
        <div class="left">
            <? foreach ($this->form as $element): ?>
                <?php if ($start && !is_null($element->getAttrib("class")) && $element->getAttrib("class") == "right"): ?>
                </div>
                <div class="right">
                    <?php $start = false; ?>
                <?php endif; ?>

                <?php if ($startImg && !is_null($element->getId()) && $element->getId() == "nome_clie"): ?>
                    <?php $startImg = false; ?>
                    <?= $element ?>
                    <a href="#" id="buscaCliente">
                        <img src="/theme/default/imgs/search.png" width="16" height="16"/>
                    </a>
                <?php else: ?>
                    <?= $element ?>
                <?php endif; ?>

            <? endforeach ?>
        </div>
        <input type="button" id="btnEnviarAtend" value="Salvar" class="btn-large"/>
        <input type="button" id="btnExcluAtend" value="Excluir" class="btn-large"/>
    </form>
</div>
<div id="searchPaciente" style="display: none;">
    <div id="buscaUsers">
        <form id="<?= $this->buscaUser->getId() ?>" action="<?= $this->buscaUser->getAction() ?>" method="post">
            <?php
            $start = true;
            $startImg = true;
            ?>
            <div class="left">
                <? foreach ($this->buscaUser as $element): ?>
                    <?php if ($start && !is_null($element->getAttrib("class")) && $element->getAttrib("class") == "right"): ?>
                    </div>
                    <div class="right">
                        <?php $start = false; ?>
                    <?php endif; ?>

                    <?= $element ?>

                <? endforeach ?>
            </div>
            <div style="float: left;">
                <input type="submit" value="Consultar" id="btnConsulta" class="btn-large"/>
                <input type="button" value="Voltar" id="btnCancelaConsulta" class="btn-large"/>
            </div>
        </form>
        <table id="flexLight1">
        </table>
    </div>
</div>
